package com.easy.dao;

import com.easy.bean.Orders;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrdersDao {
    int addOrders(@Param("orders") Orders orders);
    int editOrders(@Param("orders") Orders orders);
    int deleteOrders(@Param("id") int id);
    List<Orders> selectOrders(@Param("page") Page page, @Param("text") String text);
    Orders getOrdersById(@Param("id") int id);
    int OrdersCount(@Param("text") String text);
    List<Orders> getOrderdetailsByUserid(@Param("id") int userid);
    Orders getOrderByOrderId(@Param("id")int orderid);

    String payment(@Param("id") int orderid);

    int cancleOrder();
    Orders getOrderByCode(@Param("code")String code);
}
